package com.tyf.dubbo.service;

import com.tyf.dubbo.model.Student;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl {

    @DubboReference(version = "1.0.0",interfaceClass = StudentService.class,group = "DEFAULT_GROUP")
    private StudentService userService;

    public List<Student> getStudentList() {
        return userService.getStudentList();
    }
}
